package com.alter.model;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

@Entity
@Table(name = "AF_TAG")
public class AfTag extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @Column(unique = true)
    private String name;
    @Column(name = "tagCount")
    private Integer count;

    @ManyToMany(mappedBy = "tags")
    private List<AfArticle> articles;

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public Integer getCount() {
	return count;
    }

    public void setCount(Integer count) {
	this.count = count;
    }

    public List<AfArticle> getArticles() {
	return articles;
    }

    public void setArticles(List<AfArticle> articles) {
	this.articles = articles;
    }

}
